package com.yyt.springbootdemoredis.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author: yeyangtao
 * @date: 2019/12/3 11:48
 */
@Configuration
//设置session失效时间，使用RedisSession后之前的session失效时间就无效了
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 86400*30)
public class SessionConfig {
}
